// class 中的 static

class Person {
    constructor(name) {
        this.name = name
    }

    say() {
        console.log(`my name is ${this.name}`)
    }

    static create(name) {
        return new Person(name)
    }
}

const tom = Person.create('tom')

tom.say()